﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ListBody.ascx.cs" Inherits="Webadmin_Modules_Gallery_ListBody" %>
<%@ Import Namespace="System.Data" %>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="box_main">  
  <tr>
    <td width="100%" height="30" valign="top" class="navigator" align="left">&nbsp;<%=this.Navigator %></td>
  </tr>
  <tr>
    <td valign="top" align="center">
  		<table width="98%" class="box_into">            
            <tr >     
              <td width="100%" align="center" valign="middle">
                <div class="box_add_new">
                   <a href="?Act=Add<%=this.SearchString%>" class="tool"><img src="../../Images/Icon/new.gif"/>&nbsp;<%=this.AdminLang["AddNew"]%></a> 
                </div>
                <div class="box_filter">  
                  <form runat="server" id="frmFilter" method="post">  
                      <asp:DropDownList ID="cboFilterEnabled" runat="server" AutoPostBack="True" OnSelectedIndexChanged="btnFilter_Click" ></asp:DropDownList>
                      <asp:TextBox ID="txtFilter" runat="server"></asp:TextBox>
                      <asp:Button ID="btnFilter" runat="server" Text="" OnClick="btnFilter_Click" />
                  </form>
                </div>
              </td>     
            </tr>            
            <tr>
              <td class="box_tool">
                <div style="float:left">&nbsp;
                    <a href="#" onclick="submitFormBody(document.frmMain,'Act=Dis<%=this.SearchString%>','<%=this.AdminLang["FormMainError"] %>')" class="tool"><img src="../../Images/Icon/disabled.gif" />&nbsp;<%=this.AdminLang["Disabled"]%></a> - 
                    <a href="#" onclick="submitFormBody(document.frmMain,'Act=Ena<%=this.SearchString%>','<%=this.AdminLang["FormMainError"] %>')" class="tool"><img src="../../Images/Icon/enabled.gif" />&nbsp;<%=this.AdminLang["Enabled"]%></a> - 
                    <a href="#" class="tool" onclick="if(confirm('<%=this.AdminLang["DeleteQuestion"] %>')) submitFormBody(document.frmMain,'Act=Del<%=this.SearchString%>','<%=this.AdminLang["FormMainError"] %>');"><img src="../../Images/Icon/delete.gif" />&nbsp;<%=this.AdminLang["Delete"]%></a> -
                </div>
                <div class="box_page" style="float:right"><%=this.Pagination %></div>
              </td>
            </tr>   
            <tr>
              <td valign="middle">
	  	        <table class="box_main" width="100%" cellspacing="0">
	  	        <%-- Column of Body --%>
			        <tr>				
				        <td class="box_title" width="4%"><input type="checkbox" name="chkAll" title="<%=this.AdminLang["CheckAll"] %>" onclick="checkAllBody(document.frmMain,this.checked)" />&nbsp;</td>
				        <td class="box_title" width="56%">&nbsp;<%=this.AdminLang["TitleVN"]%></td>	
  				        <td class="box_title" width="20%">&nbsp;<%=this.AdminLang["New_Home"]%></td> 
				        <td class="box_title" width="20%">&nbsp;<%=this.AdminLang["Action"]%></td>
			        </tr>			        
			       <%-- Begin of Form --%>
			        <form name="frmMain" method="post" action="?">
			 <%foreach(DataRow dr in _dt.Rows)
              {%>                    
			        <tr>				
				        <td align="left" class="box_name" >&nbsp;<input type="checkbox" name="Chk" value="<%=dr["ID"] %>"/>&nbsp;</td>
				        <td align="left" class="box_name" style="width: 1459px" >&nbsp;<a class="no_under" href="?Act=Edit&ID=<%=dr["ID"]%> " title="<%=this.AdminLang["Edit"]%>"><span class="<%=dr["Enabled"].ToString().Trim()=="0"?"disabled":"" %>"><%if(dr["PicThumb"].ToString()!=String.Empty){ %><img src="../../Images/Icon/pic.gif" />&nbsp;<%} %><%=dr["Title"+Session["Lang"]]%></span></a></td>
                        <td align="left" class="box_name" style="width: 145px" >&nbsp;                      
                            <a class="no_under" href="?Act=Home&ID=<%=dr["ID"]%><%=this.SearchString%>" title="Thay đổi"><img src="../../Images/Icon/<%=dr["HotNews"].ToString()==bzNewsOne.NewsPosition.Home?"check.gif":"un_check.gif" %>" /> <%=dr["HotNews"].ToString() == bzNewsOne.NewsPosition.Home ? this.AdminLang["New_Home"] : this.AdminLang["News_In"]%></a>
                        </td>
				        <td align="left" class="box_name" >&nbsp;<a class="no_under" href="?Act=Edit&ID=<%=dr["ID"]%>" title="<%=this.AdminLang["Edit"] %>"><img src="../../Images/Icon/edit.gif" /></a>&nbsp;</td>
			        </tr>	<%	
            
          }
 %>
			        </form>		
			        <%-- End  of Form --%>	        
		        </table>
	          </td>
            </tr>
            <tr>
               <td class="box_tool">
                <div style="float:left">&nbsp;
                    <a href="#" onclick="submitFormBody(document.frmMain,'Act=Dis<%=this.SearchString%>','<%=this.AdminLang["FormMainError"] %>')" class="tool"><img src="../../Images/Icon/disabled.gif" />&nbsp;<%=this.AdminLang["Disabled"]%></a> - 
                    <a href="#" onclick="submitFormBody(document.frmMain,'Act=Ena<%=this.SearchString%>','<%=this.AdminLang["FormMainError"] %>')" class="tool"><img src="../../Images/Icon/enabled.gif" />&nbsp;<%=this.AdminLang["Enabled"]%></a> - 
                    <a href="#" class="tool" onclick="if(confirm('<%=this.AdminLang["DeleteQuestion"] %>')) submitFormBody(document.frmMain,'Act=Del<%=this.SearchString%>','<%=this.AdminLang["FormMainError"] %>');"><img src="../../Images/Icon/delete.gif" />&nbsp;<%=this.AdminLang["Delete"]%></a> -
                   <%-- <a href="#" onclick="submitFormBody(document.frmMain,'Act=Move<%=this.SearchString %>','<%=this.AdminLang["FormMainError"] %>')" class="tool"><img src="../../Images/Icon/move.gif" />&nbsp;<%=this.AdminLang["Move"]%></a>--%>


                   
                </div>
                <div class="box_page" style="float:right"><%=this.Pagination %></div>
              </td>
            </tr>     
          </table> 
        </td>
      </tr>
      <tr>
  	    <td height="10">&nbsp;</td>
      </tr>
    </table>  
    <script language="javascript" type="text/javascript"  src="../../JS/bzSubmitBody.js"></script>
